package com.example.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.user.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Set;

/**
 * @author: mtl
 * @Date: 2022/1/18 18:00
 * @Description: 
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 取用户角色
     * @param username
     * @return
     */
    Set<String> byUserRoles(String username);

    /**
     * 取用户权限
     * @param username
     * @return
     */
    Set<String> byUserPermissions(String username);

}